/* 长连接测试 */
#include "../source/Server_version3.hpp"

int main()
{
    std::string str = "GET /hello HTTP/1.1\r\nConnection: keep-alive\r\nContent-Length: 0\r\n\r\n";
    muduo::Socket cli_socket;
    cli_socket.CreateClient(8500,"127.0.0.1");
    while(1)
    {
        assert(cli_socket.Send(str.c_str(),str.size())!=-1);
        char recv[1024];
        assert(cli_socket.Recv(recv,1023)!=-1);
        DBG_LOG("%s",recv);
        sleep(15);
    }
}